package chapter15;

/**
 * Created by lzy
 * Date: 2018/5/14
 */
public class Decorator extends Base {
    protected Base base;

    public Decorator(Base base) {
        this.base = base;
    }

    @Override
    public void set(String val) {
        base.set(val);
    }

    @Override
    public String get() {
        return base.get();
    }
}
